/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.cidetec.business;


import com.cidetec.modelo.entidad.Usuario;
import com.cidetec.utils.Constantes;
import java.util.List;

/**
 *
 * @author Carlos
 */
public class LoginBusiness extends AbstractBusiness{

    public void validarUsuario() {

    }

    public void validarUsuario(String nick, String password) {
//        FacesContext facesContext = FacesContext.getCurrentInstance();
//        HttpServletRequest request = (HttpServletRequest) facesContext.getExternalContext().getRequest();
//        HttpSession httpSession = request.getSession(true);
//
//        DAOFactory dAOFactory = DAOFactory.getDAOFactory(DAOFactory.MY_SQL);
//        IUsuario metodosUsuario = dAOFactory.getUsuarioDAO();
//        List<Usuario> retrieveAllUsuario = metodosUsuario.retrieveAllUsuario();
//        
//        setCodigo(metodosUsuario.getCodigo());
//
//
//        System.out.println(nick);
    }
}
